<% const page={ title: '新闻编辑' , description:'',keywords: '' , } %> <%= require('@components/header.ejs')(page) %>
<!-- <script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script> -->
<!-- <script src="/libs/tinymce/tinymce.min.js"></script> -->

<!-- banner -->
<div id="banner">
  <div class="container">
    <div class="row">
      <div class="col-md-6 col-sm-12 offset-md-2 align-self-center title">
        <h2 class="wow fadeInDown">新闻编辑</h2>
        <p class="lead wow fadeInRight"></p>
      </div>
    </div>
  </div>
</div>
<!-- 富文本主体 http://www.i-sen.cn/public/Video/Profile.mp4 -->
<div class="content">
  <div style="padding: 20px 0">
    <form method="post">
      <textarea id="mytextarea">请稍后...</textarea>
    </form>
  </div>

  <div style="display: flex">
    <button id="saveButton" class="button button2">发布</button>
    <!-- <button id="saveButton2" class="button button2">编辑提交</button> -->
  </div>
</div>
<!-- 新闻 -->
<!-- <a name="News"></a>
<section class="section" id="News">
  <div class="container">
    <div class="row">
      <div class="col-12 col-md-9 News_Cont"></div>
      <div class="col-12 col-md-3 News_Side"></div>
    </div>
  </div>
</section> -->

<!-- 弹窗 -->

<!-- 弹窗模态框 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="myModalLabel">发布文章</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form id="articleForm">
          <div class="form-group">
            <label for="company">发布公司</label>
            <select class="form-control" id="company" name="company" required>
              <option value="0">请选择</option>
              <option value="1">晓智信息</option>
              <option value="2">艾森汇智</option>
            </select>
          </div>
          <div class="form-group">
            <label for="category">类别</label>
            <select class="form-control" id="category" name="category" required>
              <option value="">请先选择公司</option>
              <!-- <option value="公司动态">公司动态</option> -->
            </select>
          </div>
          <div class="form-group">
            <label for="title">文章标题</label>
            <input type="text" class="form-control" id="title" name="title" required />
          </div> 
          <div class="form-group">
            <label for="summary">文章摘要</label>
            <textarea class="form-control" id="summary" name="summary" required></textarea>
          </div>
          <div class="form-group">
            <label for="coverImage">文章封面</label>
            <input type="file" class="form-control-file" id="coverImage" name="coverImage" accept="image/*" required />
          </div>
          <img id="coverPreview" src="#" alt="封面预览" style="max-width: 100%; display: none" />
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" id="FormSaveButton">保存</button>
      </div>
    </div>
  </div>
</div>

<script></script>
<%= require('@components/footer.ejs')() %>
